package models

type Market struct {
	BaseModel
	Name     string    `json:"name" form:"name" binding:"required" gorm:"column:name;unique"`
	Code     string    `json:"code" form:"code"  gorm:"column:code"`
	Active   bool      `json:"active" form:"active" gorm:"column:active"`
	Deleted  bool      `json:"deleted" form:"deleted" gorm:"column:deleted"`
	Accounts []Account `json:"accounts" form:"accounts" gorm:"foreignkey:MarketId;association_foreignkey:Id;omitempty"`
}
